(kbd_buffer_store_event_hold): New function to store
authorKim F. Storm <storm@cua.dk>
Fri, 27 Feb 2004 23:46:31 +0000 (23:46 +0000)
committerKim F. Storm <storm@cua.dk>
Fri, 27 Feb 2004 23:46:31 +0000 (23:46 +0000)
commit41aaa3007f805e4aee53f742407376ccabc75870
treec09e50fe4ed02d20ee798575cd27725214b0ba3a
parent3de18dfc9c300e269f0fc9b082233846672b09c1
(kbd_buffer_store_event_hold): New function to store
an event into kbd fifo, but with special handling of quit event;
a quit event is saved for later, and further events are discarded
until the saved quit event has been processed.
(kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
(gen_help_event): Store help event in kbd fifo.
(NREAD_INPUT_EVENTS): Remove.
(read_avail_input): Adapt to new read_socket_hook interface.
Remove allocation and initialization of local input_event buffer,
as read_socket_hook stores events directly in fifo.  Allocate and
initialize local hold_quit event to handle postponed quit event
(and store it if set by kbd_buffer_store_event_hold).
src/keyboard.c